﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="admin_Modules_NewsEvent_Files_Default" %>

<%@ Register Assembly="CKFinder" Namespace="CKFinder" TagPrefix="CKFinder" %>
<%--
 * CKFinder
 * ========
 * http://ckfinder.com
 * Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
 *
 * The software, this file and its contents are subject to the CKFinder
 * License. Please read the license.txt file before using, installing, copying,
 * modifying or distribute this file or part of its contents. The contents of
 * this file is part of the Source Code of CKFinder.
 *
 * ---
 * This is the ASP.NET connector for CKFinder.
 *
 * You must copy the CKFinder.Connector.dll file to your "bin" directory or
 * make a reference to it in your Visual Studio project.
--%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>CKFinder - Sample - Standalone</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="robots" content="noindex, nofollow" />
    <%--


    <link href="../../../resources/sample.css" rel="stylesheet" type="text/css" />--%>
    <style type="text/css">
        /* By defining CKFinderFrame, you are able to customize the CKFinder frame style */
        .CKFinderFrame { border: solid 2px #e3e3c7; background-color: #f1f1e3; }
    </style>
    <script type="text/javascript">

        // This is a sample function which is called when a file is selected in CKFinder.
        function ShowFileInfo(fileUrl, data) {
            var msg = 'The selected URL is: ' + fileUrl + '\n\n';
            // Display additional information available in the "data" object.
            // For example, the size of a file (in KB) is available in the data["fileSize"] variable.
            if (fileUrl != data['fileUrl'])
                msg += 'File url: ' + data['fileUrl'] + '\n';
            msg += 'File size: ' + data['fileSize'] + 'KB\n';
            msg += 'Last modifed: ' + data['fileDate'];

            alert(msg);
        }

    </script>
</head>
<body>
    <p style="padding-left: 30px; padding-right: 30px;">
        <CKFinder:FileBrowser ID="FileBrowser1" BasePath="/../../../plugins/CKFINDER" SelectFunction="ShowFileInfo"
            RememberLastFolder="false" Height="450" runat="server">
        </CKFinder:FileBrowser>
    </p>
</body>
</html>
